﻿/*
 * RssEnclosure
 * 
 * see http://cyber.law.harvard.edu/rss/rss.html
 * 
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace SNSpirit.Domain.Rss
{
    [Serializable]
    [XmlRoot(ElementName = "rssEnclosure", Namespace = DomainUtillity.Namespace)]
    public class RssEnclosure : DomainEntity
    {
        /// <summary>
        /// Media url
        /// </summary>
        [XmlAttribute(AttributeName = "url", Namespace = DomainUtillity.Namespace)]
        public string Url { get; set; }
        /// <summary>
        /// Media size in bytes
        /// </summary>
        [XmlAttribute(AttributeName = "length", Namespace = DomainUtillity.Namespace)]
        public int Length { get; set; }
        /// <summary>
        /// Media MIME type
        /// </summary>
        [XmlAttribute(AttributeName = "type", Namespace = DomainUtillity.Namespace)]
        public string Type { get; set; }
    }
}
